import Layout from '@/layout'

export default {
  path: '/employees',
  component: Layout,
  children: [
    {
      // 如果嵌套路由中有 path 为空，
      // 当我们访问父级路由时，会默认展示该规则对应的组件
      // 可以理解为：是当前嵌套路由的默认路由
      path: '',
      name: 'employees',
      component: () => import('@/views/employees/index'),
      meta: { title: '员工管理', icon: 'people' }
    },
    {
      path: 'detail',
      name: 'employeesDetail',
      component: () => import('@/views/employees/detail'),
      hidden: true
    }
  ]
}
